@echo off
rem > test-binary-sed [python-dir]

if "%1" equ "" (goto default) else (goto explicit)

:default
test-suite.py @all-tests.suites -b sed.exe -x test-binary-sed.exclude
goto :eof

:explicit
set error=0
:explicit.loop

%1\python test-suite.py @all-tests.suites -b sed.exe -x test-binary-sed.exclude
IF ERRORLEVEL 1 set error=1
shift
if "%1" neq "" (goto explicit.loop)

if %error%==1 (echo Test failed.) else (echo Test succeeded.)
goto :eof
